<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="EventViewDlg" widgetVar="EventViewDialog" modal="true" resizable="false" appendTo="@(body)" header="#{message.ViewEventTitle}">
            <h:form id="EventViewForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{eventController.selected != null}">
                        <h:outputText value="#{message.ViewEventLabel_eventID}"/>
                        <h:outputText value="#{eventController.selected.eventID}" title="#{message.ViewEventTitle_eventID}"/>
                        <h:outputText value="#{message.ViewEventLabel_eventEndingTime}"/>
                        <h:outputText value="#{eventController.selected.eventEndingTime}" title="#{message.ViewEventTitle_eventEndingTime}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>
                        <h:outputText value="#{message.ViewEventLabel_eventName}"/>
                        <h:outputText value="#{eventController.selected.eventName}" title="#{message.ViewEventTitle_eventName}"/>
                        <h:outputText value="#{message.ViewEventLabel_eventPrivacy}"/>
                        <p:selectBooleanCheckbox value="#{eventController.selected.eventPrivacy}" disabled="true"/>
                        <h:outputText value="#{message.ViewEventLabel_eventStartingTime}"/>
                        <h:outputText value="#{eventController.selected.eventStartingTime}" title="#{message.ViewEventTitle_eventStartingTime}"/>
                        <h:outputText value="#{message.ViewEventLabel_eventType}"/>
                        <h:outputText value="#{eventController.selected.eventType}" title="#{message.ViewEventTitle_eventType}"/>
                        <h:outputText value="#{message.ViewEventLabel_createdBy}"/>
                        <h:outputText value="#{eventController.selected.createdBy}" title="#{message.ViewEventTitle_createdBy}"/>
                        <h:outputText value="#{message.ViewEventLabel_eventLocation}"/>
                        <h:outputText value="#{eventController.selected.eventLocation}" title="#{message.ViewEventTitle_eventLocation}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{message.Close}" onclick="EventViewDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
